package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.CourseOrder;
import cn.itsource.ymcc.domain.CourseOrderItem;
import cn.itsource.ymcc.result.JsonResult;
import cn.itsource.ymcc.vo.CourseOrderVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zongchangjiang
 * @since 2023-08-04
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    JsonResult placeOrder(CourseOrderVo courseOrderVo,Long userId);

    void save(CourseOrder courseOrder, List<CourseOrderItem> items);

    JsonResult killPlaceOrder(CourseOrderVo courseOrderVo, Long userId);
}
